﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace Ccit.OA.Scheduler
{
    public partial class scheduler_agent_edit : Ccit.Utils.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
        #region Ajax Methods
        [global::System.Web.Services.WebMethod]
        public static string DoSaveSchProxy(string strExpr, string stype)
        {
            MsSchProxy ms = (MsSchProxy)JavaScriptConvert.DeserializeObject(strExpr, typeof(MsSchProxy));
            SchedulerBLL Bll = new SchedulerBLL();
            List<string> lstResult = Bll.DoSaveSchProxyMes(ms);
            var newObj = new { resultflag = lstResult[0], message = lstResult[1], resulttype = stype };
            string serExpr = JavaScriptConvert.SerializeObject(newObj);
            return serExpr;
        }
        #endregion
    }
}
